home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / redfever.swf / scripts / frame_1 / PlaceObject2_26_33 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2005-11-09  |  564 b   |  24 lines

  1. onClipEvent(enterFrame){
  2.    variable = _parent.getBytesLoaded() + _parent.getBytesLoaded();
  3.    total = _parent.getBytesTotal() + _parent.getBytesTotal();
  4.    Nb_pourcentage = Math.floor(variable / total * 100);
  5.    if(total < 1)
  6.    {
  7.       pourcentage = "0%";
  8.    }
  9.    else
  10.    {
  11.       pourcentage = Nb_pourcentage + "%";
  12.    }
  13.    barre._xscale = Nb_pourcentage;
  14.    barre2._xscale = Nb_pourcentage;
  15.    if(variable == total)
  16.    {
  17.       _parent.is_load = 1;
  18.       if(_parent.sereferme != true and 1 < total)
  19.       {
  20.          play();
  21.       }
  22.    }
  23. }
  24.